package controller;

import java.util.List;

import dao.EmpDAO;
import entities.Emp;

public class EmpAction {
	private Emp emp;
	private int id;
	private List<Emp> list;
	
	private EmpDAO empDAO;
	
	public String execute(){
		empDAO = new EmpDAO();
		list = empDAO.findAll();
		return "list";
	}

	public Emp getEmp() {
		return emp;
	}

	public void setEmp(Emp emp) {
		this.emp = emp;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public List<Emp> getList() {
		return list;
	}

	public void setList(List<Emp> list) {
		this.list = list;
	}

	public EmpDAO getEmpDAO() {
		return empDAO;
	}

	public void setEmpDAO(EmpDAO empDAO) {
		this.empDAO = empDAO;
	}
	
}
